import { Commit } from "vuex";
interface IState {
  data: IData[];
  nav: INav[];
  loading: boolean;
}
interface INav {
  id: number;
  cid: string;
  data: string;
}
interface IData {
  id: number;
  yuanjia: number;
  jiage: number;
  istmall: number;
  xiaoliang: number;
  yongjin: number;
  quanNum: number;
  quanOver: number;
  quanJine: number;
  huodongType: number;
  pic: string;
  sellerId: string;
  renqi: number;
  isHaitao: number;
  salesNum: string;
  createTime: string;
  reachPrice: number;
  market_group: Array<any>;
  mallDesc: string;
  dtitle: string;
}
interface IAction {
  type: string;
  payload: IData[];
}
interface IRank {
  namespaced: boolean;
  state: IState;
  actions: {
    getssb: ({ commit }: { commit: Commit }) => void;
    getqtb: ({ commit }: { commit: Commit }) => void;
    setload: ({ commit }: { commit: Commit }) => void;
    getdata: ({ commit }: { commit: Commit }, { cid }: { cid: string }) => void;
  };
  mutations: {
    SETDATA: (state: IState, action: IAction) => void;
    SETLOAD: (state: IState) => void;
  };
}
export { IRank, IAction, IData };
